<!--{subtemplate common/header}-->
<!--{subtemplate common/css}-->

<script language= "javascript"> 
function   shownav() 
{ 
    document.getElementById("navvv").style.display= "block"; 
} 
function hidenav()
{
	document.getElementById("navvv").style.display="none";
}
</script>

<div class="v2-bl">
<div class="v2-boxtl"></div><div class="v2-box">

<div id="pt" class="bm cl">
	<!--{if empty($gid) && $announcements}-->	
		<div id="an">
			<dl class="cl">
				<dt class="z xw1">{lang announcements}:&nbsp;</dt>
				<dd>
					<div id="anc"><ul id="ancl">$announcements</ul></div>
				</dd>
			</dl>
		</div>
		<script type="text/javascript">announcement();</script>	
	<!--{/if}-->
	<div class="z">
<style type="text/css">
<!--
#navvv {
	display:none;
}-->

</style>

	</div>	
</div>

<!--{if empty($gid)}-->
	<!--{ad/text/wp a_t}-->
	<!--{/if}-->	

<div class="v2-bbox"  >
	<a href="./" onmouseover="shownav()" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
	<div id="navvv"  onmouseout="hidenav()">
	<ul>

			<!--{loop $catlist $key $cat}-->
<div class="v2-hp">
	<h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>			
					<!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->					
									
					
						<!--{loop $cat[forums] $forumid}-->
						<!--{eval $forum=$forumlist[$forumid];}-->
						<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->						
						<!--{if $cat['forumcolumns']}-->
						<li>
						<div class="v2-bico"><!--{if $forum[icon]}-->$forum[icon]<!--{else}--><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" /><!--{/if}--></div>
						<div class="v2-bt">
						<h3><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em>($forum[todayposts])</em><!--{/if}--></h3>	
						<!--{if empty($forum[redirect])}--><p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p><!--{/if}-->
						</div>					
						</li>	
						<!--{else}-->						
						<li>
						<div class="v2-bico"><!--{if $forum[icon]}-->$forum[icon]<!--{else}--><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" /><!--{/if}--></div>
						<div class="v2-bt">
						<h3><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em>($forum[todayposts])</em><!--{/if}--></h3>	
						<!--{if empty($forum[redirect])}--><p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p><!--{/if}-->
						</div>					
						</li>							
						<!--{/if}-->						
				<!--{/loop}-->
		</div>			
		<!--{/loop}-->
	</ul>	
</div>	
	

<div class="v2-dy">

<div class="v2-ndpost">
{eval $list=forumpost('3,4,17,19,29,35',1,'views',560,0,0)}
<!--{loop $list $o}-->
<div class="v2-new">
<h1><a href="forum.php?mod=viewthread&tid=$o[tid]" target="_blank">{echo cutstr($o[subject],40)}</a></h1>
<p><a href="forum.php?mod=forumdisplay&fid=$o[fid]" target="_blank">{$o[name]}</a><span class="pipe">&bull;</span><a href="home.php?mod=space&uid=$o[authorid]" target="_blank">{$o[author]}</a> <em>({echo date('Y-m-d',$o[dateline])})</em></p>
</div>
<p class="v2-newnr"><img src="npic.php?tid=$o[tid]" onerror="this.src='{IMGDIR}/wnopic.png'" class="v2-newimg" />{$o[message]} ...</p>
<p class="v2-more"><a href="forum.php?mod=viewthread&tid=$o[tid]" target="_blank"><img src="{IMGDIR}/v2-more.png" /></a> <span>{lang v2_chak}: {$o[views]} - {lang v2_huif}: {$o[replies]} </span></p>
<!--{/loop}-->
</div>

<SCRIPT LANGUAGE="JavaScript">
function view(a) {
	for(var i=1;i<=3;i++){
		document.getElementById('top' + i).style.display = 'none';
		document.getElementById(i+'tab').className = '';
	}
	document.getElementById('top'+a).style.display='block';
	document.getElementById(a+'tab').className='current';
}
</SCRIPT>
<div class="v2-tab">
<ul>
<li id="1tab" class="current" onclick="javascript:view(1);"><span>{lang v2_rmzt}</span></li>
<li id="2tab" class="" onclick="javascript:view(2);"><span>{lang v2_zxhf}</span></li>
<li id="3tab" class="" onclick="javascript:view(3);"><span>{lang v2_sqxt}</span></li>
</ul>
</div>

<div class="v2-dpost" id="top1" style="display: none;">
<ul>
{eval $list=forumpost('3,4,17,19,29,35',10,'views',280,0,0)}
<!--{loop $list $o}-->
<li>
<div class="v2-davt"><a href="home.php?uid=$o[authorid]" target="_blank"><img src="{echo avatar($o[authorid],'small',1);}" /></a></div>
<div class="v2-dtxt">
<h1><cite>{$o[views]}</cite><a href="forum.php?mod=viewthread&tid=$o[tid]" target="_blank">{echo cutstr($o[subject],50)}</a><img id="category_$o[tid]a_img" src="{IMGDIR}/v2-$cat[collapseimg]" title="{lang v2_gbzkyl}" alt="{lang v2_gbzkyl}" onclick="toggle_collapse('category_$o[tid]a');" /></h1>
<p><a href="forum.php?mod=forumdisplay&fid=$o[fid]" target="_blank">{$o[name]}</a><span class="pipe">&bull;</span><a href="home.php?mod=space&uid=$o[authorid]" target="_blank">{$o[author]}</a> <em>({echo date('Y-m-d',$o[dateline])})</em></p>
</div>
<div id="category_$o[tid]a" style=" display:none;" class="v2-rmtxt">{$o[message]} ...</div>
</li>
<!--{/loop}-->
</ul>
</div>

<div class="v2-dpost" id="top2" style="display: block;">
<ul>
{eval $list=forumpost('3,4,17,19,29,35',10,'lastpost',280,0,0)}
<!--{loop $list $o}-->
<li>
<div class="v2-davt"><a href="home.php?uid=$o[authorid]" target="_blank"><img src="{echo avatar($o[authorid],'small',1);}" /></a></div>
<div class="v2-dtxt">
<h1><cite>{$o[replies]}</cite><a href="forum.php?mod=viewthread&tid=$o[tid]" target="_blank">{echo cutstr($o[subject],50)}</a><img id="category_$o[tid]b_img" src="{IMGDIR}/v2-$cat[collapseimg]" title="{lang v2_gbzkyl}" alt="{lang v2_gbzkyl}" onclick="toggle_collapse('category_$o[tid]b');" /></h1>
<p><a href="home.php?mod=space&uid=$o[authorid]" target="_blank">{$o[author]}</a> <em>({echo date('Y-m-d',$o[dateline])})</em><span class="pipe">&bull;</span><a href="home.php?mod=space&username=$o[lastposterenc]" target="_blank">{$o[lastposter]}</a> <em>({echo date('m-d H:i',$o[lastpost])})</em></p>
</div>
<div id="category_$o[tid]b" style=" display:none;" class="v2-rmtxt">{$o[message]} ...</div>
</li>
<!--{/loop}-->
</ul>
</div>

<div class="v2-dpost" id="top3" style="display: none;">
<ul>
{eval $list=forumpost('3,4,17,19,29,35',10,'dateline',280,0,0)}
<!--{loop $list $o}-->
<li>
<div class="v2-davt"><a href="home.php?uid=$o[authorid]" target="_blank"><img src="{echo avatar($o[authorid],'small',1);}" /></a></div>
<div class="v2-dtxt">
<h1><cite>{$o[replies]}</cite><a href="forum.php?mod=viewthread&tid=$o[tid]" target="_blank">{echo cutstr($o[subject],50)}</a><img id="category_$o[tid]c_img" src="{IMGDIR}/v2-$cat[collapseimg]" title="{lang v2_gbzkyl}" alt="{lang v2_gbzkyl}" onclick="toggle_collapse('category_$o[tid]c');" /></h1>
<p><a href="forum.php?mod=forumdisplay&fid=$o[fid]" target="_blank">{$o[name]}</a><span class="pipe">&bull;</span><a href="home.php?mod=space&uid=$o[authorid]" target="_blank">{$o[author]}</a> <em>({echo date('Y-m-d',$o[dateline])})</em></p>
</div>
<div id="category_$o[tid]c" style=" display:none;" class="v2-rmtxt">{$o[message]} ...</div>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
				
</div>

</div><div class="v2-boxbl"></div>
</div>


<div class="v2-br">

<!--{template forum/discuz_v2s}-->

	<style id="diy_style" type="text/css"></style>
<!--{if empty($gid)}-->
		<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<!--{/if}-->

<div class="v2-boxtr"></div><div class="v2-box">
<h2>{lang v2_rmbq}</h2>
<div class="v2-tag">
{loop $tagslist $v}<a href='misc.php?mod=tag&id=$v[tagid]'>$v[tagname]</a>{/loop}
</div>
</div><div class="v2-boxbrj"></div>

	<!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->		
	<div class="v2-boxtr"></div><div class="v2-box">			
	<h2>{lang v2_sqxx}</h2>
	<ul class="v2-data">		
	<!--{if empty($gid)}-->		
			<li><span>{lang v2_jrts}</span>$todayposts</li>							
	<!--{/if}-->
	<li><span>{lang v2_hyzs}</span>$_G['cache']['userstats']['totalmembers']</li>
	<!--{if empty($gid)}-->		
			<li><span>{lang v2_ztzs}</span>$threads</li>								
	<!--{/if}-->			
				<!--{if $detailstatus}-->
						<li><span>{lang v2_zxrs}</span>$onlinenum</li>															
				<!--{else}-->
						<li><span>{lang v2_zxrs}</span>$onlinenum</li>																
				<!--{/if}-->				
	<!--{if empty($gid)}-->		
			<li><span>{lang v2_tzzs}</span>$posts</li>					
	<!--{/if}-->	
				<!--{if $detailstatus}-->
						<li><span><a href="home.php?mod=space&do=friend&view=online&type=member">{lang v2_zxhy}</a></span>$membercount</li>										
				<!--{else}-->
						<li><span>{lang v2_zgjl}</span>$onlineinfo[0]</li>											
				<!--{/if}-->							
				</ul>
		</div><div class="v2-boxbrj"></div>		
		<!--{/if}-->
		
		<!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
	<div class="v2-boxtr"></div><div class="v2-box">
	<h2>{lang v2_yqlj}</h2>
		<div class="lk">
			<div id="category_lk">
				<!--{if $_G['cache']['forumlinks'][0]}-->
					<ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
				<!--{/if}-->
				<!--{if $_G['cache']['forumlinks'][1]}-->
					<div class="mbn cl">
						$_G['cache']['forumlinks'][1]
					</div>
				<!--{/if}-->
				<!--{if $_G['cache']['forumlinks'][2]}-->
					<ul class="x mbm cl">
						$_G['cache']['forumlinks'][2]
					</ul>
				<!--{/if}-->
			</div>
		</div>
	</div><div class="v2-boxbrj"></div>
		<!--{/if}-->
<!--{subtemplate common/footer_v2ad}-->
</div>

<div class="cl"></div>
<!--{subtemplate common/footer}-->
